﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:OMANE.Modules.Indicateurs" x:Class="Views.ViewFormulaEditor" 
             xmlns:sys="clr-namespace:System;assembly=mscorlib"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Width="400" Height="400">
	<UserControl.DataContext>
		<local:VMSqlQuery/>
	</UserControl.DataContext>
    <Grid>
    	<DataGrid AutoGenerateColumns="False" ColumnWidth="*" ItemsSource="{Binding Lines}" >
    		<DataGrid.Columns>
    			<DataGridTextColumn Header="Nom" Binding="{Binding Name, Mode=TwoWay}" />
    			<DataGridTextColumn Header="Valeur" Binding="{Binding Expression, Mode=TwoWay}"/>
    			<DataGridTextColumn Header="Table"/>
                <DataGridComboBoxColumn Header="Tri" SelectedItemBinding="{Binding Tri, Mode=TwoWay}" >
                    <DataGridComboBoxColumn.ItemsSource>
                        <x:Array Type="sys:String">
                            <sys:String>Loki</sys:String>
                        </x:Array>
                    </DataGridComboBoxColumn.ItemsSource>
                </DataGridComboBoxColumn>
    			<DataGridCheckBoxColumn Header="Afficher" Binding="{Binding Show, Mode=TwoWay}"/>
    		</DataGrid.Columns>
    	</DataGrid>
    </Grid>
</UserControl>
